package com.cloud.entity.mes;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 来料检验表(MesQmInComingItem)实体类
 *
 * @author yzy
 * @since 2021-05-26 17:29:13
 */
@Data
@Entity
@Table(name = "mes_qm_incomingitem")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MesQmInComingItem implements Serializable {
    private static final long serialVersionUID = 678606535623454680L;

    @Id
    @Column(name = "ID")
    @ApiModelProperty(value = "id")
    private String id;


    @Column(name = "bar_code")
    @ApiModelProperty(value = "产品码")
    private String barCode;


    @Column(name = "factory_id")
    @ApiModelProperty(value = "工厂id")
    private String factoryId;

    @Column(name = "CODE")
    @ApiModelProperty(value = "检验批单号")
    private String code;

    @Column(name = "COLUMN22")
    @ApiModelProperty(value = "来料收货单id")
    private String column22;

    @Column(name = "SUPPLIER_ID")
    @ApiModelProperty(value = "供应商id")
    private String supplierId;

    @Column(name = "SUPPLIER_CODE")
    @ApiModelProperty(value = "供应商编码")
    private String supplierCode;

    @Column(name = "SUPPLIER_NAME")
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @Column(name = "PRODUCT_ID")
    @ApiModelProperty(value = "物料id")
    private String productId;

    @Column(name = "PRODUCT_CODE")
    @ApiModelProperty(value = "物料编码")
    private String productCode;

    @Column(name = "PRODUCT_NAME")
    @ApiModelProperty(value = "物料名称")
    private String productName;

    @Column(name = "AMOUNT")
    @ApiModelProperty(value = "数量")
    private BigDecimal amount;

    @Column(name = "STATUS")
    @ApiModelProperty(value = "检验状态0未检验 1已检验")
    private Object status;

    @Column(name = "TEST_RESULT")
    @ApiModelProperty(value = "检验结论OK/NG")
    private String testResult;

    @Column(name = "NG_RESULT")
    @ApiModelProperty(value = "不合格处置结论0让步接收 1紧急放行 2退货")
    private Object ngResult;

    @Column(name = "SAMPLE_AMOUNT")
    @ApiModelProperty(value = "样本数量")
    private Object sampleAmount;

    @Column(name = "FILE_ID")
    @ApiModelProperty(value = "附件id")
    private String fileId;

    @Column(name = "TEST_USER_NAME")
    @ApiModelProperty(value = "检验人名称")
    private String testUserName;

    @Column(name = "TEST_DATE")
    @ApiModelProperty(value = "检验时间")
    private Date testDate;

    @Column(name = "CD_TIME")
    @ApiModelProperty(value = "创建时间")
    private Date cdTime;

    @Column(name = "CD_USERID")
    @ApiModelProperty(value = "创建人id")
    private String cdUserid;

    @Column(name = "MD_TIME")
    @ApiModelProperty(value = "修改时间")
    private Date mdTime;

    @Column(name = "MDUSER_ID")
    @ApiModelProperty(value = "修改人id")
    private String mduserId;

    @Column(name = "DELETED")
    @ApiModelProperty(value = "删除标识0否1是")
    private Integer deleted;

    @Column(name = "CDUSERNAME")
    @ApiModelProperty(value = "创建人")
    private String cdusername;

    @Column(name = "MDUSERNAME")
    @ApiModelProperty(value = "修改人")
    private String mdusername;

    @Column(name = "area_id")
    @ApiModelProperty(value = "修改人")
    private String areaId;
}
